package com.juyu.reader.pc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.juyu.reader.pc.dao.CollectionDao;
import com.juyu.reader.pc.model.Collection;

@Service
public class CollectionService {
	@Autowired
	public CollectionDao collectionDao;

	public List<Collection> findCollection(Collection collection) {
		return collectionDao.findCollection(collection);
	}

	public int countCollection(Collection collection) {
		return collectionDao.countCollection(collection);
	}

	public int insertCollection(Collection collection) {
		return collectionDao.insertCollection(collection);
	}

	public int deleteCollection(Collection collection) {
		return collectionDao.deleteCollection(collection);
	}
}
